Move UmaskGuard in uucore and use it for mkdir, mkfifo & mknod#10310
Move UmaskGuard in uucore and use it for mkdir, mkfifo & mknod#10310sylvestre wants to merge 6 commits intouutils:mainfrom
Conversation
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
|
GNU testsuite comparison: |
40ce322 to
c20327c
Compare
|
GNU testsuite comparison: |
| } | ||
|
|
||
| #[test] | ||
| #[cfg(unix)] |
There was a problem hiding this comment.
This test is failing because the coverage tests use -Cpanic=abort so they don't have catch_unwind
You can add:
#[cfg(panic = "unwind")]
|
I think we have to be careful adding umask integration tests when its running multi-threaded because the UMaskGuard affects the process, when stress testing it the tests were flaky. Maybe adding a Mutex in the unit tests? Might be good to add a comment in the helper function: |
|
GNU testsuite comparison: |
followup of #10036